﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->
    <!--<link href="__PUBLIC__/simpleboot/themes/{:C('SP_ADMIN_STYLE')}/theme.min.css" rel="stylesheet">-->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="__PUBLIC__/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="__TMPL__Public/assets/css/print.css" rel="stylesheet" media="print" />

    <!--[if IE 7]>
    <link rel="stylesheet" href="__PUBLIC__/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
    <![endif]-->
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "__ROOT__/",
            WEB_ROOT: "__WEB_ROOT__/",
            JS_ROOT: "public/js/",
            APP: '{$Think.MODULE_NAME}'/*当前应用名*/
        };
    </script>
    <script src="http://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script src="__PUBLIC__/js/wind.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__TMPL__Public/assets/js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="__TMPL__Public/assets/js/jQuery.print.js"></script>
   <script type="text/javascript">
        $(document).ready(function (e) {

            $("#btnPublish").click(function(){
                $("#is_publish").val("1");
                return true;
            });

            $files = $(".controls .fileDownload");
            $files.each(function (index, item) {
                var filetype = $(item).attr("data-type");
                if (filetype == "png" || filetype == "jpg" || filetype == "jpeg" || filetype == "bmp" || filetype == "gif" || filetype == "pdf") {
                    $btn = $('<a>').html("查看").attr("target", "_blank").attr("href", $(item).attr("path")).addClass("btn btn-warning btn-xs").css("margin-left", "20px");
                    $(this).after($btn);
                }
            });
        });
   </script>
    <if condition="APP_DEBUG">
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    </if>
